package com.hospital.hospitalserver.entity.Vo;

import com.hospital.hospitalserver.entity.BaseScheduleTemplate;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 排班实例表
 * */
@Data
@ToString(callSuper = true) //注解来包含父类的字段
public class ScheduleInstance extends BaseScheduleTemplate {
    private Integer instance_id; //排班实例ID
    private Integer template_id; //排班模板ID
    private LocalDate schedule_date; //排班日期
    private String staff_type_code; // 人员类型代码
    private Integer staff_id; // 排班人员ID
    private String  staff_type; //人员类型
    private Integer department_id; //科室ID
    private String time_slot_code; //班次时间代码
    private String schedule_type; //排班类型
    private String location; //工作地点

    //扩展字段
    private String staff_name; //人员姓名
    private String department_name; //科室名称
    private String fee_item_name; //费用名称
    private BigDecimal fee_amount; //费用金额-该字段是前端字段，标准价格一致
    private BigDecimal standard_price; //标准价格-自费
    private BigDecimal insurance_price; //医保价格

    //业务数据（从模板复制）
    private Integer fee_item_id;
    private Integer max_patients;
    private Integer actual_patients;
    private String pharmacy_location;
    private String service_type;
    private String window_number;
    private String service_scope;

    private Integer status;
    private String notes;
    private LocalDateTime create_time;
    private LocalDateTime update_time;
}
